package simplevideochat.ui.event
{
	import flash.events.Event;
	import simplevideochat.communication.IRoom;
	
	public class UIEvent extends Event
	{
		public static const CONNECT_TO_ROOM:String = "uievent_connect_to_room";
		
		private var _room:IRoom;
		
		public function UIEvent(type:String, room:IRoom, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			room = room;
		}
		
		public function get room():IRoom 
		{
			return _room;
		}
		
		public function set room(value:IRoom):void 
		{
			_room = value;
		}

	}
}